// 场馆接口
import request from "@/utils/request";
// 获取场馆列表
export function qryShopApi(data) {
	return request({
		url: "/applet/api/prod/qryShop",
		method: "POST",
		data,
	});
}

// 获取场馆详情列表
export function getShopApi(data) {
	return request({
		url: "/applet/api/prod/getShop",
		method: "POST",
		data,
	});
}

// 查询热门教练推荐
export function qrySpListApi(data) {
	return request({
		url: "/applet/api/prod/qrySp",
		method: "POST",
		data,
	});
}


export function orderEvaluationApi(data) {
	return request({
		url: "/pay/tyEvaluation/getEvaluationList",
		method: "GET",
		data,
	});
}

// 微信支付-预约场地生成订单
export function placeOrdApi(data) {
	return request({
		url: "/applet/api/ord/placeOrd",
		method: "POST",
		data,
	});
}


// 微信支付-预约教练生成订单
export function placeAptApi(data) {
	return request({
		url: "/applet/api/ord/placeApt",
		method: "POST",
		data,
	});
}

// 微信支付-立即支付
export function payOrdApi(data) {
	return request({
		url: "/applet/api/ord/payOrd",
		method: "POST",
		data,
	});
}


// 用户对场地的评价
export function qryEvalApi(data) {
	return request({
		url: "/applet/api/ord/qryEval",
		method: "POST",
		data,
	});
}

// 场地详情
export function getProdApi(data) {
	return request({
		url: "/applet/api/prod/getProd",
		method: "POST",
		data,
	});
}



// 用户对场地的评价
export function getOrdApi(data) {
	return request({
		url: "/pay/api/ord/getOrd",
		method: "POST",
		data,
	});
}